package cn.wolfcode.luowowo.comment.repository;

import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import cn.wolfcode.luowowo.comment.domain.TravelComment;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * MongoRepository 的泛型
 * 1. 实体类类型,  2. 实体类的id类型
 * @Repository 注解: 通过aop方式(动态代理)
 */
@Repository
public interface ITravelCommentRepository extends MongoRepository<TravelComment, String> {
    List<TravelComment> findByUserId(Long id);
}
